package com.gu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gu.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gu.entity.vo.CourseInfoVo;
import com.gu.entity.vo.CoursePublishVo;
import com.gu.entity.vo.CourseQuery;
import com.gu.entity.vo.front.CourseDetailVo;
import com.gu.entity.vo.front.CourseFrontVo;

/**
 *
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveOrUpdateCourse(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseById(String courseId);

    CoursePublishVo  getCoursePublishInfoById(String courseId);

    Page<EduCourse> getCourseListPage(CourseQuery courseQuery, Long current , Long limit);

    boolean deleteCourseById(String courseId);

    //获取sort倒叙分类中的前4名
    Page<EduCourse> getCourseForIndex();

    /**
     * 前台接口
     * */
    Page<EduCourse> getCourseListFront(String current, CourseFrontVo courseFrontVo);

    CourseDetailVo getCourseDetailById(String courseId);
}
